
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[WordBookmarkInsert]
    @Id INT OUTPUT ,
    @WordTemplateId INT ,
    @Name VARBINARY(MAX) ,
    @Description VARBINARY(MAX) ,
    @BookmarkGroupId INT ,
    @IsTextBookmark BIT ,
    @Visible BIT
AS 
    BEGIN
	
        INSERT  INTO WordBookmark
                ( WordTemplateId ,
                  Name ,
                  Description ,
                  DateCreated ,
                  IsTextBookmark ,
                  BookmarkGroupId ,
                  Visible ,
                  Deleted
                )
        VALUES  ( @WordTemplateId ,
                  @Name ,
                  @Description ,
                  GETDATE() ,
                  @IsTextBookmark ,
                  @BookmarkGroupId ,
                  @Visible ,
                  0
                ) ;
	
        SET @Id = SCOPE_IDENTITY() ;
	
    END
GO
